import { databaseProviderName } from '@app/common/constants';
import mongoose from 'mongoose';
const connect = 'mongodb://127.0.0.1:27017/restaurants';

export const databaseProviders = [
  {
    provide: databaseProviderName,
    useFactory: (): Promise<typeof mongoose> => mongoose.connect(connect),
  },
];
